<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Eventos Codington</title>
<link rel="stylesheet" type="text/css" href="css/Style.css" />
<link href='http://fonts.googleapis.com/css?family=Lily+Script+One' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Rock+Salt' rel='stylesheet' type='text/css'>
<script type="text/javascript" src="cookies.js"></script>

</head>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String visitorName=null;
Cookie cookie= null;
Cookie[] cookies=((HttpServletRequest) request).getCookies();
if(cookies!=null){
	for(int i=0; i<cookies.length; i++){
		cookie=cookies[i];
		if(cookie.getName().compareTo("user")==0)
		visitorName=cookie.getValue();
	}
}
%>
<c:set var="userName" value="<%= visitorName%>"></c:set>

<body>

<header class="cabecera">

<div class="image">

<img src="Images/Skyline.png" alt="Mi titulo de la imagen">

 
 	<c:if test="${userName==null}">
	<div class="login"> 
 		<img src="Images/icon.png" alt="icono">
 		<a href="infVisitor.htm">welcome</a> / <a href="index.htm">LogOut</a>
	</div>
	</c:if>
 
 	<c:if test="${userName!=null}">
	<div class="login"> 
 		<img src="Images/icon.png" alt="icono">
 		<a href="infVisitor.htm"><c:out value="${userName}"></c:out></a> / <a href="index.htm">LogOut</a>
	</div>
	</c:if>


<nav class="nav"> 
	<ul class="menu">
		<li><a href="index2.htm"> Home</a></li>
		<li><a href="#"> North Town</a>
			<ul>
				<li><a href="museum.htm"> Museum</a></li>
				<li><a href="theater.htm"> Theater</a></li>
				<li><a href="stadium.htm"> Stadium</a></li>
				<li><a href="business.htm"> Business</a></li>
			</ul>
		</li>
		<li><a href="#"> South Town</a>
			<ul>
				<li><a href="park.htm"> Park</a></li>
				<li><a href="zoo.htm"> Zoo</a></li>
				<li><a href="attractions.htm"> Attractions</a></li>
				<li><a href="markets.htm"> Markets</a></li>
			</ul>
		</li>
		<li><a href="show_events.htm"> Events</a></li>
	</ul>
 </nav>

</header>

<div class="Container home">

		 <img class='photo'  src="Images/slide1.jpg" alt="" />
		 <img class='photo'  src="Images/slide2.jpg" alt="" />
		 <img class='photo'  src="Images/slide4.jpg" alt="" />
		 <img class='photo'  src="Images/slide3.jpg" alt="" />
		 <img class='photo'  src="Images/slide5.jpg" alt="" />


</div>

<footer> Copyright @ 2015 All rights reserved </footer>
</body>
</html>